projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb2022
)
Minor enhancements to chkdoc.
author
robertl
<robertl>
Mon, 24 Jan 2005 00:43:05 +0000
(
00:43
+0000)
committer
robertl
<robertl>
Mon, 24 Jan 2005 00:43:05 +0000
(
00:43
+0000)
chkdoc
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/chkdoc
b/chkdoc
index 21a8eeb8b100d1aea1b4953fae672bf328d37833..19f93ed136f9ec2f48b1efe9422e8913a3739616 100755
(executable)
--- a/
chkdoc
+++ b/
chkdoc
@@
-22,11
+22,6
@@
checkit() {
ECODE=1
fi
- if ! grep -qi "$TYPE" testo
- then
- echo $STY $TYPE is not in testo.
- ECODE=1
- fi
}
./gpsbabel -^ |
@@
-45,5
+40,25
@@
do
checkit $TYPE filter
done
+#
+# See if they're in testo.
+#
+./gpsbabel -^2 |
+while read FMT
+do
+ set -- $FMT
+ case $1 in
+ file)
+ TYPE=$3
+ if ! grep -qi "$TYPE" testo
+ then
+ echo $STY $TYPE is not in testo.
+ ECODE=1
+ fi
+
+ esac
+done
+
+
exit $ECODE
diff --git
a/main.c
b/main.c
index 78acd8dfeb4c766b38ce52ff216d4946adfc8ea5..32f1cd0ba194f993ea399dfc2ad5610f11bdb41d 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-236,6
+236,7
@@
main(int argc, char *argv[])
case 'v':
switch(argv[argn][2]) {
case 's': global_opts.verbose_status = 1; break;
+ case 'S': global_opts.verbose_status = 2; break;
}
break;